3.9.55 \(\int \frac {1}{\sqrt {x} \sqrt {2-b x} \sqrt {2+b x}} \, dx\) [855]

Optimal. Leaf size=30 \[ \frac {\sqrt {2} F\left (\left .\sin ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {2}}\right )\right |-1\right )}{\sqrt {b}} \]

[Out]

EllipticF(1/2*b^(1/2)*x^(1/2)*2^(1/2),I)*2^(1/2)/b^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.040, Rules used = {117} \begin {gather*} \frac {\sqrt {2} F\left (\left .\text {ArcSin}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {2}}\right )\right |-1\right )}{\sqrt {b}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/(Sqrt[x]*Sqrt[2 - b*x]*Sqrt[2 + b*x]),x]

[Out]

(Sqrt[2]*EllipticF[ArcSin[(Sqrt[b]*Sqrt[x])/Sqrt[2]], -1])/Sqrt[b]

Rule 117

Int[1/(Sqrt[(b_.)*(x_)]*Sqrt[(c_) + (d_.)*(x_)]*Sqrt[(e_) + (f_.)*(x_)]), x_Symbol] :> Simp[(2/(b*Sqrt[e]))*Rt
[-b/d, 2]*EllipticF[ArcSin[Sqrt[b*x]/(Sqrt[c]*Rt[-b/d, 2])], c*(f/(d*e))], x] /; FreeQ[{b, c, d, e, f}, x] &&
GtQ[c, 0] && GtQ[e, 0] && (PosQ[-b/d] || NegQ[-b/f])

Rubi steps

\begin {align*} \int \frac {1}{\sqrt {x} \sqrt {2-b x} \sqrt {2+b x}} \, dx &=\frac {\sqrt {2} F\left (\left .\sin ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {2}}\right )\right |-1\right )}{\sqrt {b}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
time = 10.02, size = 26, normalized size = 0.87 \begin {gather*} \sqrt {x} \, _2F_1\left (\frac {1}{4},\frac {1}{2};\frac {5}{4};\frac {b^2 x^2}{4}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/(Sqrt[x]*Sqrt[2 - b*x]*Sqrt[2 + b*x]),x]

[Out]

Sqrt[x]*Hypergeometric2F1[1/4, 1/2, 5/4, (b^2*x^2)/4]

________________________________________________________________________________________

Maple [A]
time = 0.10, size = 32, normalized size = 1.07

method result size
default \(\frac {\EllipticF \left (\frac {\sqrt {2}\, \sqrt {b x +2}}{2}, \frac {\sqrt {2}}{2}\right ) \sqrt {-b x}}{\sqrt {x}\, b}\) \(32\)
elliptic \(\frac {\sqrt {-x \left (b^{2} x^{2}-4\right )}\, \sqrt {2}\, \sqrt {b \left (x +\frac {2}{b}\right )}\, \sqrt {-b \left (x -\frac {2}{b}\right )}\, \sqrt {-2 b x}\, \EllipticF \left (\frac {\sqrt {2}\, \sqrt {b \left (x +\frac {2}{b}\right )}}{2}, \frac {\sqrt {2}}{2}\right )}{2 \sqrt {x}\, \sqrt {-b x +2}\, \sqrt {b x +2}\, b \sqrt {-b^{2} x^{3}+4 x}}\) \(106\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x^(1/2)/(-b*x+2)^(1/2)/(b*x+2)^(1/2),x,method=_RETURNVERBOSE)

[Out]

EllipticF(1/2*2^(1/2)*(b*x+2)^(1/2),1/2*2^(1/2))*(-b*x)^(1/2)/x^(1/2)/b

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^(1/2)/(-b*x+2)^(1/2)/(b*x+2)^(1/2),x, algorithm="maxima")

[Out]

integrate(1/(sqrt(b*x + 2)*sqrt(-b*x + 2)*sqrt(x)), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^(1/2)/(-b*x+2)^(1/2)/(b*x+2)^(1/2),x, algorithm="fricas")

[Out]

0

________________________________________________________________________________________

Sympy [B] Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 95 vs. \(2 (27) = 54\).
time = 11.81, size = 95, normalized size = 3.17 \begin {gather*} \frac {\sqrt {2} i {G_{6, 6}^{5, 3}\left (\begin {matrix} \frac {1}{2}, 1, 1 & \frac {3}{4}, \frac {3}{4}, \frac {5}{4} \\\frac {1}{4}, \frac {1}{2}, \frac {3}{4}, 1, \frac {5}{4} & 0 \end {matrix} \middle | {\frac {4}{b^{2} x^{2}}} \right )}}{8 \pi ^{\frac {3}{2}} \sqrt {b}} - \frac {\sqrt {2} i {G_{6, 6}^{3, 5}\left (\begin {matrix} - \frac {1}{4}, 0, \frac {1}{4}, \frac {1}{2}, \frac {3}{4} & 1 \\0, \frac {1}{2}, 0 & - \frac {1}{4}, \frac {1}{4}, \frac {1}{4} \end {matrix} \middle | {\frac {4 e^{- 2 i \pi }}{b^{2} x^{2}}} \right )}}{8 \pi ^{\frac {3}{2}} \sqrt {b}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x**(1/2)/(-b*x+2)**(1/2)/(b*x+2)**(1/2),x)

[Out]

sqrt(2)*I*meijerg(((1/2, 1, 1), (3/4, 3/4, 5/4)), ((1/4, 1/2, 3/4, 1, 5/4), (0,)), 4/(b**2*x**2))/(8*pi**(3/2)
*sqrt(b)) - sqrt(2)*I*meijerg(((-1/4, 0, 1/4, 1/2, 3/4), (1,)), ((0, 1/2, 0), (-1/4, 1/4, 1/4)), 4*exp_polar(-
2*I*pi)/(b**2*x**2))/(8*pi**(3/2)*sqrt(b))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^(1/2)/(-b*x+2)^(1/2)/(b*x+2)^(1/2),x, algorithm="giac")

[Out]

integrate(1/(sqrt(b*x + 2)*sqrt(-b*x + 2)*sqrt(x)), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int \frac {1}{\sqrt {x}\,\sqrt {2-b\,x}\,\sqrt {b\,x+2}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x^(1/2)*(2 - b*x)^(1/2)*(b*x + 2)^(1/2)),x)

[Out]

int(1/(x^(1/2)*(2 - b*x)^(1/2)*(b*x + 2)^(1/2)), x)

________________________________________________________________________________________